﻿
namespace Edu.Technion.CSE.OpenUnit4.CollectionsLib
{
    /// <summary>
    /// 
    /// </summary>
    /// <typeparam name="T"></typeparam>
    interface IList<T>
    {
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        Node<T> GetFirst();

        /// <summary>
        /// 
        /// </summary>
        /// <param name="pos"></param>
        /// <param name="newItem"></param>
        /// <returns></returns>
        Node<T> Insert(Node<T> pos, T newItem);

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        bool IsEmpty();

        /// <summary>
        /// 
        /// </summary>
        /// <param name="pos"></param>
        /// <returns></returns>
        Node<T> Remove(Node<T> pos);

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        string ToString();
    }
}
